home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / gnu / gprof / gpfsrc09.zoo / Makefile < prev    next >
Makefile  |  1992-03-30  |  2KB  |  51 lines

  1. # Makefile for GNU gprof (atariST tos-gcc version)
  2. # Copyright (C) 1989, Free Software Foundation, Inc.
  3. #
  4. # This file is part of GNU CC.
  5. # GNU CC is free software; you can redistribute it and/or modify
  6. # it under the terms of the GNU General Public License as published by
  7. # the Free Software Foundation; either version 1, or (at your option)
  8. # any later version.
  9. # GNU CC is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. # GNU General Public License for more details.
  13. # You should have received a copy of the GNU General Public License
  14. # along with GNU CC; see the file COPYING.  If not, write to
  15. # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  16.  
  17. CROSSDIR = /net/acae127/home/bammi/atari/cross-gcc
  18. CROSSBIN = $(CROSSDIR)/bin
  19.  
  20. CC = $(CROSSBIN)/cgcc
  21. CFLAGS = -O2 -DATARI=1 -I. -fomit-frame-pointer -DNDEBUG
  22.  
  23. # Use the GNU getopt unless you have problems with it.
  24. GNU_GETOPT = getopt.o
  25. GNU_GETOPT_LONG = getopt.o getopt1.o
  26. PROGS = gprof.ttp
  27. TESTS = test1.tos test2.tos
  28.  
  29. all: $(PROGS) $(TESTS)
  30.  
  31. gprof.ttp: gprof.o cplusdem.o $(GNU_GETOPT_LONG)
  32.     $(CC) -o gprof.ttp gprof.o cplusdem.o $(GNU_GETOPT_LONG) -s
  33. gprof.o: gprof.c gmon.h 
  34.     $(CC) -c $(CFLAGS) gprof.c $(OUTPUT_OPTION)
  35.  
  36. test1.tos: test1.c
  37.     $(CC) -G -O -o test1.tos test1.c -pg -mshort -v
  38.  
  39. test2.tos: test2.c
  40.     $(CC) -G -O -o test2.tos test2.c -pg  -v
  41.  
  42. clean:
  43.     rm -f *.o core
  44.  
  45. realclean: clean
  46.     rm -f $(PROGS) $(TESTS)
  47.